// 模板字符串 `${变量名}`

let zhangfeng = {
    name: "张奉",
    age: 18,
    sayHello(job, hobby) {
        // console.log("我叫" + this.name + "，今年" + this.age + "岁。我的工作是：" + job + "，我的爱好是：" + hobby + "。");
        console.log(`我叫${this.name}，今年${this.age}岁。我的工作是：${job}，我的爱好是：${hobby}。`);
    }
};

zhangfeng.sayHello("IT工程师", "配音");

let luoyue = {
    name: "罗月",
    age: 19
};

zhangfeng.sayHello.call(luoyue, "教师", "跳舞");